<h1>Listing cookbooks</h1>

<table border="1px">
  <tr>
    <th>Title</th>
    <th>Description</th>
  </tr>

<% for cookbook in @cookbooks %>
  <tr>
    <td><%=h cookbook.title %></td>
    <td><%=h cookbook.description %></td>
    <td><%= link_to 'Show', cookbook %></td>
    <td><%= link_to 'Edit', edit_cookbook_path(cookbook) %></td>
    <td><%= link_to 'Destroy', cookbook, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New cookbook', new_cookbook_path %>
